feat: per-profile env overrides and auth list command#47
Merged
Conversation
…esolution Adds `[profiles.<name>.envs]` table for per-profile environment variable overrides (e.g. CDCX_REST_URL) so users can route profiles to different endpoints without shell wrappers. Adds `cdcx auth list` to display all configured profiles with masked keys and live auth status (ok/error). Fixes MCP server ignoring config.toml when plugin framework passes empty env vars — empty/whitespace CDCX_API_KEY/SECRET now fall through to config. MCP also reads CDCX_PROFILE to select the active profile. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[profiles.<name>.envs]table inconfig.tomlfor per-profile environment variable overrides (e.g.CDCX_REST_URL,CDCX_WS_MARKET_URL), allowing profiles to route to different endpoints without shell wrapperscdcx auth listcommand that displays all configured profiles with masked API keys and live auth status (ok/error)config.tomlwhen plugin framework passes empty env vars — empty/whitespaceCDCX_API_KEY/CDCX_API_SECRETnow fall through to config fileCDCX_PROFILE/CDC_PROFILEenv var to select the active profileTest plan
cargo test— all 318 tests passcdcx auth list— shows correct auth status per profile with isolated env overrides[envs]correctly override URLs only for that profileCDCX_PROFILEto select correct credentials and environmentcloses #46
🤖 Generated with Claude Code